home *** CD-ROM | disk | FTP | other *** search
/ Utilities Professional 1-1500 / Utilities Professional 1-1500 (1994)(WPD)[!].iso / 12511500 / var1432.dms / var1432.adf / NDUK-V40.lha / V40 / include / prefs / serial.h < prev    next >
C/C++ Source or Header  |  1993-10-15  |  2KB  |  65 lines

  1. #ifndef PREFS_SERIAL_H
  2. #define PREFS_SERIAL_H
  3. /*
  4. **    $VER: serial.h 38.2 (10.7.91)
  5. **    Includes Release 40.15
  6. **
  7. **    File format for serial preferences
  8. **
  9. **    (C) Copyright 1991-1993 Commodore-Amiga, Inc.
  10. **    All Rights Reserved
  11. */
  12.  
  13. /*****************************************************************************/
  14.  
  15.  
  16. #ifndef EXEC_TYPES_H
  17. #include <exec/types.h>
  18. #endif
  19.  
  20. #ifndef LIBRARIES_IFFPARSE_H
  21. #include <libraries/iffparse.h>
  22. #endif
  23.  
  24.  
  25. /*****************************************************************************/
  26.  
  27.  
  28. #define ID_SERL MAKE_ID('S','E','R','L')
  29.  
  30.  
  31. struct SerialPrefs
  32. {
  33.     LONG  sp_Reserved[3];        /* System reserved            */
  34.     ULONG sp_Unit0Map;            /* What unit 0 really refers to     */
  35.     ULONG sp_BaudRate;            /* Baud rate                */
  36.  
  37.     ULONG sp_InputBuffer;        /* Input buffer: 0 - 65536        */
  38.     ULONG sp_OutputBuffer;        /* Future: Output: 0 - 65536        */
  39.  
  40.     UBYTE sp_InputHandshake;        /* Input handshaking            */
  41.     UBYTE sp_OutputHandshake;        /* Future: Output handshaking        */
  42.  
  43.     UBYTE sp_Parity;            /* Parity                */
  44.     UBYTE sp_BitsPerChar;        /* I/O bits per character        */
  45.     UBYTE sp_StopBits;            /* Stop bits                */
  46. };
  47.  
  48. /* constants for SerialPrefs.sp_Parity */
  49. #define PARITY_NONE    0
  50. #define PARITY_EVEN    1
  51. #define PARITY_ODD    2
  52. #define PARITY_MARK    3        /* Future enhancement */
  53. #define PARITY_SPACE    4        /* Future enhancement */
  54.  
  55. /* constants for SerialPrefs.sp_Input/OutputHandshaking */
  56. #define HSHAKE_XON    0
  57. #define HSHAKE_RTS    1
  58. #define HSHAKE_NONE    2
  59.  
  60.  
  61. /*****************************************************************************/
  62.  
  63.  
  64. #endif /* PREFS_SERIAL_H */
  65.